angular.module("myApp")
	.controller("TimelimitController", ["$scope", "$http",
		function($scope, $http) {
			$scope.arr = ["昨日22:00", "10:00", "14:00", "18:00", "22:00", "明日10:00", "明日14:00", "明日18:00"];
			$scope.focus = 3;
			$scope.dwk = 3;
			$http.get("./data/timelimit5.json").success(cl).error(function() {});
			$scope.li_click = function(i) {
					
					$scope.focus = i;
					$scope.dwk = i;
					$http.get("./data/timelimit"+i+".json").success(cl).error(function() {})

				};
			
			function cl(res) {
				$scope.star = res.data.screenList;
				
				$scope.goods = res.data.itemList
				//$scope.number=goods
				
			}
		}
	])